dxl common shared folder

  • OK, we know this works, no problem, we can include a file like this:
#include "//abcdefg1/install/DOORS_DXL_Addins_Test/DXL/SubMenuFolder/Include_Files/ABC.inc"

  • now I want to replace the front bit to a common shared folder
  • and I did change the slashes around in the string and added slashes etc - nothing seems to work
const string NEW_SHARED_PATH = "//abcdefg1//install//DOORS_DXL_Addins_Test//DXL"

  • and include the same file as above, but that does not work as such
#include NEW_SHARED_PATH "/SubMenuFolder/Include_Files/ABC.inc"

  • and also does not work as
#include <NEW_SHARED_PATH "/SubMenuFolder/Include_Files/ABC.inc">

Is there a way around it, and someone found to make this work? and is willing to share. or am I having a 'friday arvo' moment and this is not possible to do at all?
There is reason behind all this and the "ProjectAddins" and "Addins" switches and registry entries are not the ideal solution in this case - but if I have to then, sigh, I shall use the switches.

Thanks for all your help
Werner
SystemAdmin - Thu Mar 31 23:24:17 EDT 2011

Re: dxl common shared folder
llandale - Fri Apr 01 12:10:54 EDT 2011

#include statements are resolved when the script is interpreted, not when it executes. Your variable therefore has no value nor meaning in the statement.

I think you are stuck; but I suppose there is some hope using system Environment Variables. Perhaps use the "-d" switch to define

setenv("MyPath", "//abcdefg1//install//DOORS_DXL_Addins_Test//DXL")

and use some value in the #include statement.

#include <%MyPath% "/SubMenuFolder/Include_Files/ABC.inc">

or something like that.

  • Louie